home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 / Ham Radio 2000.iso / ham2000 / tcp_ip / os2 / pmnos11s / trace.h < prev    next >
C/C++ Source or Header  |  1992-10-31  |  3KB  |  88 lines

  1. #ifndef    _TRACE_H
  2. #define    _TRACE_H
  3.  
  4. #ifndef    _MBUF_H
  5. #include "mbuf.h"
  6. #endif
  7.  
  8. #ifndef    _IFACE_H
  9. #include "iface.h"
  10. #endif
  11.  
  12. /* Definitions for packet dumping */
  13.  
  14. /* Table of trace subcommands */
  15. struct tracecmd {
  16.     char *name;    /* Name of trace subcommand */
  17.     int val;    /* New setting for these bits */
  18.     int mask;    /* Mask of bits affected in trace word */
  19. };
  20. extern struct tracecmd Tracecmd[];    /* Defined in trace.c */
  21.  
  22. /* List of address testing and tracing functions for each interface.
  23.  * Entries are placed in this table by conditional compilation in main.c.
  24.  */
  25. struct trace {
  26.     int (*addrtest) __ARGS((struct iface *ifp,struct mbuf *bp));
  27.     void (*tracef) __ARGS((struct iface *,struct mbuf **,int));
  28. };
  29.  
  30. extern struct trace Tracef[];
  31.  
  32. /* In trace.c: */
  33. void dump __ARGS((struct iface *ifp,int direction,unsigned type,struct mbuf *bp));
  34. void raw_dump __ARGS((struct iface *ifp,int direction, struct mbuf *bp));
  35. void trace_log __ARGS((struct iface *ifp,char *fmt, ...));
  36. void shuttrace __ARGS ((void));
  37. void prtTrace(struct iface *ip, char *pszBuffer, ...);
  38. void trtimer(void);
  39.  
  40. /* In arcdump.c: */
  41. void arc_dump __ARGS((struct iface *ip,struct mbuf **bpp,int check));
  42. int arc_forus __ARGS((struct iface *iface,struct mbuf *bp));
  43.  
  44. /* In arpdump.c: */
  45. void arp_dump __ARGS((struct iface *ip,struct mbuf **bpp));
  46.  
  47. /* In ax25dump.c: */
  48. void ax25_dump __ARGS((struct iface *ip,struct mbuf **bpp,int check));
  49. int ax_forus __ARGS((struct iface *iface,struct mbuf *bp));
  50.  
  51. /* In enetdump.c: */
  52. void ether_dump __ARGS((struct iface *ip,struct mbuf **bpp,int check));
  53. int ether_forus __ARGS((struct iface *iface,struct mbuf *bp));
  54.  
  55. /* In icmpdump.c: */
  56. void icmp_dump __ARGS((struct iface *ip,struct mbuf **bpp,int32 source,int32 dest,int check));
  57.  
  58. /* In ipdump.c: */
  59. void ip_dump __ARGS((struct iface *ip,struct mbuf **bpp,int check));
  60.  
  61. /* In kissdump.c: */
  62. void ki_dump __ARGS((struct iface *ip,struct mbuf **bpp,int check));
  63. int ki_forus __ARGS((struct iface *iface,struct mbuf *bp));
  64.  
  65. /* In nrdump.c: */
  66. void netrom_dump __ARGS((struct iface *ip,struct mbuf **bpp,int check));
  67.  
  68. /* In pppdump.c: */
  69. void ppp_dump __ARGS((struct iface *ip,struct mbuf **bpp,int check));
  70.  
  71. /* In ripdump.c: */
  72. void rip_dump __ARGS((struct iface *ip,struct mbuf **bpp));
  73.  
  74. /* In ripdump.c: */
  75. void rspf_dump __ARGS((struct iface *ip,struct mbuf **bpp,int32 source,int32 dest,int check));
  76.  
  77. /* In slcompdump.c: */
  78. void sl_dump __ARGS((struct iface *ip,struct mbuf **bpp,int check));
  79. void vjcomp_dump __ARGS((struct iface *ip,struct mbuf **bpp,int unused));
  80.  
  81. /* In tcpdump.c: */
  82. void tcp_dump __ARGS((struct iface *ip,struct mbuf **bpp,int32 source,int32 dest,int check));
  83.  
  84. /* In udpdump.c: */
  85. void udp_dump __ARGS((struct iface *ip,struct mbuf **bpp,int32 source,int32 dest,int check));
  86.  
  87. #endif    /* _TRACE_H */
  88.